package com.ruoyi.gbase.controller;

import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.gbase.domain.ProLogDetail;
import com.ruoyi.gbase.service.IProLogDetailService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 存储过程日志Controller
 * 
 * @author yys
 * @date 2020-12-09
 */
@Controller
@RequestMapping("/gbase/ProLogDetail")
public class ProLogDetailController extends BaseController
{
    private String prefix = "gbase/ProLogDetail";

    @Autowired
    private IProLogDetailService proLogDetailService;

    @RequiresPermissions("gbase:ProLogDetail:view")
    @GetMapping("/{proName}")
    public String edit(@PathVariable("proName") String proName, ModelMap mmap)
    {
        ProLogDetail proLogDetail = new ProLogDetail();
        proLogDetail.setProName(proName);
        mmap.put("proLogDetail", proLogDetail);
        return prefix + "/ProLogDetail";
    }

    /**
     * 查询存储过程日志列表
     */
    @RequiresPermissions("gbase:ProLogDetail:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(ProLogDetail proLogDetail)
    {
        //startPage();
        List<ProLogDetail> list = proLogDetailService.selectProLogDetailList(proLogDetail);
        return getDataTable(list);
    }


}

